#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <assert.h>

//模拟实现strlen函数
int my_strlen(char* p)
{
	assert(p);
	int count = 0;
	while (p[count])
	{
		count++;
	}
	return count;
}

int main()
{
	char arr[] = "charity";
	printf("%d\n", my_strlen(arr));
	return 0;
}